Spaces:
Sleeping
Sleeping
artificialguybr
commited on
Commit
•
572ad52
1
Parent(s):
77f6b05
Update app.py
Browse files
app.py
CHANGED
@@ -35,10 +35,10 @@ def generate_knowledge_graph(api_key, user_input):
|
|
35 |
iface = gr.Interface(
|
36 |
fn=generate_knowledge_graph,
|
37 |
inputs=[
|
38 |
-
gr.
|
39 |
-
gr.
|
40 |
],
|
41 |
-
outputs=gr.
|
42 |
live=False
|
43 |
)
|
44 |
|
|
|
35 |
iface = gr.Interface(
|
36 |
fn=generate_knowledge_graph,
|
37 |
inputs=[
|
38 |
+
gr.components.Textbox(label="OpenAI API Key", type="password"),
|
39 |
+
gr.components.Textbox(label="User Input for Graph")
|
40 |
],
|
41 |
+
outputs=gr.components.Image(type="filepath", label="Generated Knowledge Graph"),
|
42 |
live=False
|
43 |
)
|
44 |
|