Update app.py
Browse files
app.py
CHANGED
@@ -89,29 +89,31 @@ gradio_theme = gr.themes.Base(
|
|
89 |
font=["Poppins", "sans-serif"]
|
90 |
)
|
91 |
|
92 |
-
ocr_interface = gr.
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
chatbot_interface = gr.Interface(
|
105 |
-
fn=chatbot_response,
|
106 |
-
inputs=gr.Textbox(placeholder="Ask me anything about coding!", lines=2),
|
107 |
-
outputs="text",
|
108 |
-
title=None, # Remove the default title
|
109 |
-
description="<p style='color:#BBB;'>Engage with NeuraGPT for AI-powered insights and smart coding advice.</p>",
|
110 |
-
theme=gradio_theme,
|
111 |
-
css=custom_css,
|
112 |
-
)
|
113 |
|
114 |
-
chatbot_interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
|
116 |
demo = gr.TabbedInterface([ocr_interface, chatbot_interface], ["Neura.AI", "NeuraGPT"], theme=gradio_theme)
|
117 |
|
|
|
89 |
font=["Poppins", "sans-serif"]
|
90 |
)
|
91 |
|
92 |
+
ocr_interface = gr.Blocks()
|
93 |
+
|
94 |
+
with ocr_interface:
|
95 |
+
gr.Markdown("<h1 style='text-align: center;'>Neura.AI</h1>")
|
96 |
+
gr.Interface(
|
97 |
+
fn=ocr_gradio,
|
98 |
+
inputs=gr.Image(type="filepath"),
|
99 |
+
outputs="text",
|
100 |
+
description="<p style='color:#BBB;'>The future of coding is here. Just upload a diagram of the technical architecture of your project or app to Neura.AI and generate high-quality, executable code!</p>",
|
101 |
+
theme=gradio_theme,
|
102 |
+
css=custom_css
|
103 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
|
105 |
+
chatbot_interface = gr.Blocks()
|
106 |
+
|
107 |
+
with chatbot_interface:
|
108 |
+
gr.Markdown("<h1 style='text-align: center;'>NeuraGPT</h1>")
|
109 |
+
gr.Interface(
|
110 |
+
fn=chatbot_response,
|
111 |
+
inputs=gr.Textbox(placeholder="Ask me anything about coding!", lines=2),
|
112 |
+
outputs="text",
|
113 |
+
description="<p style='color:#BBB;'>Engage with NeuraGPT for AI-powered insights and smart coding advice.</p>",
|
114 |
+
theme=gradio_theme,
|
115 |
+
css=custom_css
|
116 |
+
)
|
117 |
|
118 |
demo = gr.TabbedInterface([ocr_interface, chatbot_interface], ["Neura.AI", "NeuraGPT"], theme=gradio_theme)
|
119 |
|