Spaces:
Sleeping
Sleeping
Gopala Krishna
commited on
Commit
·
5e2a2dd
1
Parent(s):
abe00c8
- .vs/MyChatGPTTurbo/v17/.wsuo +0 -0
- app.py +2 -2
.vs/MyChatGPTTurbo/v17/.wsuo
CHANGED
Binary files a/.vs/MyChatGPTTurbo/v17/.wsuo and b/.vs/MyChatGPTTurbo/v17/.wsuo differ
|
|
app.py
CHANGED
@@ -28,10 +28,10 @@ def chatbot(input):
|
|
28 |
except openai.error.OpenAIError as e:
|
29 |
return "System is at capacity right now.Please try again later"
|
30 |
|
31 |
-
gr.Interface(
|
32 |
fn=chatbot,
|
33 |
inputs=gr.inputs.Textbox(lines=7, label="Query"),
|
34 |
outputs=gr.outputs.Textbox(label="Response"),
|
35 |
theme=gr.themes.Default(primary_hue="sky"))
|
36 |
|
37 |
-
|
|
|
28 |
except openai.error.OpenAIError as e:
|
29 |
return "System is at capacity right now.Please try again later"
|
30 |
|
31 |
+
iface = gr.Interface(
|
32 |
fn=chatbot,
|
33 |
inputs=gr.inputs.Textbox(lines=7, label="Query"),
|
34 |
outputs=gr.outputs.Textbox(label="Response"),
|
35 |
theme=gr.themes.Default(primary_hue="sky"))
|
36 |
|
37 |
+
iface.launch()
|