Spaces:
Running
Running
Update app.py
Browse files
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 = "
|
31 |
description = "Enter text to generate a knowledge graph using GPT4KG:"
|
32 |
|
33 |
with gr.Blocks() as demo:
|
34 |
-
gr.Markdown("
|
|
|
|
|
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([])
|