artificialguybr commited on
Commit
572ad52
1 Parent(s): 77f6b05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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.inputs.Textbox(label="OpenAI API Key", type="password"),
39
- gr.inputs.Textbox(label="User Input for Graph")
40
  ],
41
- outputs=gr.outputs.Image(label="Generated Knowledge Graph"),
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