Spaces:
Sleeping
Sleeping
ASG Models
commited on
Commit
•
7758f6a
1
Parent(s):
1e709ac
Update app.py
Browse files
app.py
CHANGED
@@ -80,11 +80,12 @@ def get_answer_ai(text):
|
|
80 |
response = AI.send_message(text,stream=True)
|
81 |
return response
|
82 |
def dash(text):
|
|
|
83 |
response=get_answer_ai(text)
|
84 |
for chunk in response:
|
85 |
yield chunk.text
|
86 |
# return textai
|
87 |
-
outtextbox = gr.Textbox( streaming=True)
|
88 |
|
89 |
-
|
|
|
90 |
demo.launch()
|
|
|
80 |
response = AI.send_message(text,stream=True)
|
81 |
return response
|
82 |
def dash(text):
|
83 |
+
|
84 |
response=get_answer_ai(text)
|
85 |
for chunk in response:
|
86 |
yield chunk.text
|
87 |
# return textai
|
|
|
88 |
|
89 |
+
|
90 |
+
demo = gr.Interface(fn=dash, inputs=["text"], outputs=['text'])
|
91 |
demo.launch()
|