Spaces:
Runtime error
Runtime error
Gopala Krishna
commited on
Commit
•
d4fd6d5
1
Parent(s):
01be1e5
changed theme
Browse files- .vs/ContentModeration/FileContentIndex/1f56c3f5-35ef-429c-bf3c-ebba20d97929.vsidx +0 -0
- .vs/ContentModeration/FileContentIndex/2f12fa69-b91c-468f-8ee6-4c1e8ba01590.vsidx +0 -0
- .vs/ContentModeration/FileContentIndex/5df5151a-9184-4b46-bcf7-2f42f4bbd607.vsidx +0 -0
- .vs/ContentModeration/FileContentIndex/6907054c-6fa5-4516-8155-30250f9b9c45.vsidx +0 -0
- .vs/ContentModeration/FileContentIndex/8bfb06a7-5fc4-4d48-8f81-d02a7ec347a8.vsidx +0 -0
- .vs/ContentModeration/FileContentIndex/dcfd09ac-6b79-4366-a6da-dba08d1488b9.vsidx +0 -0
- .vs/ContentModeration/FileContentIndex/e0ba73d5-fdde-4eb1-b7a7-c0d7bf514d15.vsidx +0 -0
- .vs/ContentModeration/v17/.wsuo +0 -0
- .vs/slnx.sqlite +0 -0
- README.md +1 -1
- app.py +3 -4
.vs/ContentModeration/FileContentIndex/1f56c3f5-35ef-429c-bf3c-ebba20d97929.vsidx
ADDED
Binary file (3.2 kB). View file
|
|
.vs/ContentModeration/FileContentIndex/2f12fa69-b91c-468f-8ee6-4c1e8ba01590.vsidx
DELETED
Binary file (5.43 kB)
|
|
.vs/ContentModeration/FileContentIndex/5df5151a-9184-4b46-bcf7-2f42f4bbd607.vsidx
ADDED
Binary file (3.82 kB). View file
|
|
.vs/ContentModeration/FileContentIndex/6907054c-6fa5-4516-8155-30250f9b9c45.vsidx
DELETED
Binary file (4.78 kB)
|
|
.vs/ContentModeration/FileContentIndex/8bfb06a7-5fc4-4d48-8f81-d02a7ec347a8.vsidx
ADDED
Binary file (171 Bytes). View file
|
|
.vs/ContentModeration/FileContentIndex/dcfd09ac-6b79-4366-a6da-dba08d1488b9.vsidx
DELETED
Binary file (127 Bytes)
|
|
.vs/ContentModeration/FileContentIndex/e0ba73d5-fdde-4eb1-b7a7-c0d7bf514d15.vsidx
DELETED
Binary file (272 Bytes)
|
|
.vs/ContentModeration/v17/.wsuo
CHANGED
Binary files a/.vs/ContentModeration/v17/.wsuo and b/.vs/ContentModeration/v17/.wsuo differ
|
|
.vs/slnx.sqlite
CHANGED
Binary files a/.vs/slnx.sqlite and b/.vs/slnx.sqlite differ
|
|
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 💩
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: purple
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 3.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: purple
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.22.1
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
app.py
CHANGED
@@ -3,8 +3,7 @@ import openai
|
|
3 |
import gradio as gr
|
4 |
|
5 |
try:
|
6 |
-
|
7 |
-
openai.api_key = "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"
|
8 |
|
9 |
except KeyError:
|
10 |
error_message = "System is at capacity right now.Please try again later"
|
@@ -30,6 +29,6 @@ def chatbot(input):
|
|
30 |
inputs = gr.inputs.Textbox(lines=7, label="Query")
|
31 |
outputs = gr.outputs.Textbox(label="Response")
|
32 |
|
33 |
-
gr.Interface(fn=chatbot, inputs=inputs, outputs=outputs,
|
34 |
-
theme="
|
35 |
|
|
|
3 |
import gradio as gr
|
4 |
|
5 |
try:
|
6 |
+
openai.api_key = os.environ["OPENAI_API_KEY"]
|
|
|
7 |
|
8 |
except KeyError:
|
9 |
error_message = "System is at capacity right now.Please try again later"
|
|
|
29 |
inputs = gr.inputs.Textbox(lines=7, label="Query")
|
30 |
outputs = gr.outputs.Textbox(label="Response")
|
31 |
|
32 |
+
gr.Interface(fn=chatbot, inputs=inputs, outputs=outputs,
|
33 |
+
theme=gr.themes.Default(primary_hue="slate")).launch()
|
34 |
|