Spaces:
Sleeping
Sleeping
Gopala Krishna
commited on
Commit
·
c693d2c
1
Parent(s):
8619710
- .vs/MyChatGPTTurbo/v17/.wsuo +0 -0
- app.py +8 -1
.vs/MyChatGPTTurbo/v17/.wsuo
CHANGED
Binary files a/.vs/MyChatGPTTurbo/v17/.wsuo and b/.vs/MyChatGPTTurbo/v17/.wsuo differ
|
|
app.py
CHANGED
@@ -28,11 +28,18 @@ def chatbot(input):
|
|
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=
|
|
|
36 |
|
37 |
iface.launch()
|
38 |
|
|
|
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 = gr.Interface(
|
38 |
fn=chatbot,
|
39 |
inputs=gr.inputs.Textbox(lines=7, label="Query"),
|
40 |
outputs=gr.outputs.Textbox(label="Response"),
|
41 |
+
theme="compact")
|
42 |
+
|
43 |
|
44 |
iface.launch()
|
45 |
|