Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 =
|
| 35 |
-
return
|
| 36 |
|
| 37 |
-
iface = gr.Interface(fn=get_completion, inputs="text", outputs=[
|
| 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()
|