giovannefeitosa
commited on
Commit
•
135abbc
1
Parent(s):
41849f0
Add app.py
Browse files- serve.py → app.py +5 -3
serve.py → app.py
RENAMED
@@ -35,9 +35,11 @@ def randomExamples(numberOfExamples=15):
|
|
35 |
return examples
|
36 |
|
37 |
|
38 |
-
gr.Interface(
|
|
|
39 |
fn=predict,
|
40 |
-
inputs=["
|
41 |
-
|
|
|
42 |
examples=randomExamples(),
|
43 |
).launch()
|
|
|
35 |
return examples
|
36 |
|
37 |
|
38 |
+
gr.Interface.load(
|
39 |
+
"models/giovannefeitosa/chatbot-about-pele",
|
40 |
fn=predict,
|
41 |
+
inputs=[gr.Textbox(label="Question", lines=2),
|
42 |
+
gr.Textbox(label="OpenAI Key")],
|
43 |
+
outputs=gr.Textbox(label="Answer", lines=2),
|
44 |
examples=randomExamples(),
|
45 |
).launch()
|