helliun commited on
Commit
33146f2
1 Parent(s): 567763a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -27,11 +27,13 @@ def clear_graph(api_key,graph):
27
  graph.append(kg)
28
  return graph,None#Image.new('RGB', (400, 100),(255, 255, 255))
29
 
30
- title = "GPT-4 Knowledge Graph Generator"
31
  description = "Enter text to generate a knowledge graph using GPT4KG:"
32
 
33
  with gr.Blocks() as demo:
34
- gr.Markdown("""<h1><center>GPT-4 Knowledge Graph Generator</center></h1>""")
 
 
35
  output_image = gr.Image(label="Knowledge Graph", type="pil")
36
  api_key = gr.Textbox(lines=1, label="OpenAI API Key")
37
  graph = gr.State([])
 
27
  graph.append(kg)
28
  return graph,None#Image.new('RGB', (400, 100),(255, 255, 255))
29
 
30
+ title = "Associative Memory with GPT4KG"
31
  description = "Enter text to generate a knowledge graph using GPT4KG:"
32
 
33
  with gr.Blocks() as demo:
34
+ gr.Markdown(f"<h1><center>{title}</center></h1>")
35
+ gr.Markdown(f"<h2><center>{description}</center></h2>")
36
+
37
  output_image = gr.Image(label="Knowledge Graph", type="pil")
38
  api_key = gr.Textbox(lines=1, label="OpenAI API Key")
39
  graph = gr.State([])