Fiacre commited on
Commit
3507ede
·
1 Parent(s): 45526f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -31,9 +31,8 @@ def get_completion(describe_your_project_idea_here):
31
  messages=messages,
32
  temperature=0, # this is the degree of randomness of the model's output
33
  )
34
- project_scope = Markdown(response.choices[0].message["content"])
35
- return {"output1": project_scope, "output2": project_scope}
36
 
37
- iface = gr.Interface(fn=get_completion, inputs="text", outputs=[ gr.components.Markdown("output1"),
38
- gr.components.Markdown("output2")])
39
  iface.launch()
 
31
  messages=messages,
32
  temperature=0, # this is the degree of randomness of the model's output
33
  )
34
+ project_scope = response.choices[0].message["content"]
35
+ return project_scope, project_scope
36
 
37
+ iface = gr.Interface(fn=get_completion, inputs="text", outputs=["markdown", "markdown"])
 
38
  iface.launch()