Spaces:
Runtime error
Runtime error
Commit
·
88cd1d0
1
Parent(s):
9f21ec5
Delete app.py
Browse files
app.py
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
#following are the commands to activate and deactive the virtual env
|
| 2 |
-
# source debate/bin/activate
|
| 3 |
-
# deactivate
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
import gradio as gr
|
| 7 |
-
from create_poll import create_poll
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
chat_input = gr.Textbox(lines=5, label="Chat")
|
| 11 |
-
#context_input = gr.Textbox(lines=1, label="Context")
|
| 12 |
-
api_key_input = gr.Textbox(lines=1, label="API key")
|
| 13 |
-
|
| 14 |
-
demo = gr.Interface(
|
| 15 |
-
fn=create_poll,
|
| 16 |
-
inputs=[chat_input, api_key_input],
|
| 17 |
-
outputs=gr.Textbox(lines=5, label="Generated Poll"),
|
| 18 |
-
examples=[
|
| 19 |
-
|
| 20 |
-
],
|
| 21 |
-
title="Poll Generation App",
|
| 22 |
-
description="Give a chat log",
|
| 23 |
-
)
|
| 24 |
-
|
| 25 |
-
demo.launch(share = False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|