giovannefeitosa commited on
Commit
135abbc
1 Parent(s): 41849f0

Add app.py

Browse files
Files changed (1) hide show
  1. 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=["text", "text"],
41
- outputs="text",
 
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()