Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,6 +20,10 @@ def process_text(api_key, example, question):
|
|
20 |
|
21 |
return image, answer
|
22 |
|
|
|
|
|
|
|
|
|
23 |
demo = gr.Interface(
|
24 |
fn=process_text,
|
25 |
inputs=[
|
@@ -31,7 +35,7 @@ demo = gr.Interface(
|
|
31 |
outputs=[
|
32 |
gr.Image(type="pil", label="Image Generated by DALL·E 3", image_mode="fixed", width=768, height=768),
|
33 |
gr.Textbox(label="Answer")],
|
34 |
-
title=
|
35 |
)
|
36 |
|
37 |
if __name__ == "__main__":
|
|
|
20 |
|
21 |
return image, answer
|
22 |
|
23 |
+
title_html = """
|
24 |
+
<a href='https://github.com/GraphPKU/CoI' target='coi'>Chain of Images for Intuitively Reasoning</a>
|
25 |
+
"""
|
26 |
+
|
27 |
demo = gr.Interface(
|
28 |
fn=process_text,
|
29 |
inputs=[
|
|
|
35 |
outputs=[
|
36 |
gr.Image(type="pil", label="Image Generated by DALL·E 3", image_mode="fixed", width=768, height=768),
|
37 |
gr.Textbox(label="Answer")],
|
38 |
+
title=title_html
|
39 |
)
|
40 |
|
41 |
if __name__ == "__main__":
|