Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -115,40 +115,40 @@ topics = """
|
|
115 |
"""
|
116 |
# Display function
|
117 |
|
118 |
-
def display_image():
|
119 |
-
|
120 |
-
|
121 |
-
with gr.Blocks(theme=theme) as demo:
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
).set(
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
)
|
138 |
|
139 |
-
# Setup the Gradio Blocks interface with custom layout components
|
140 |
-
with gr.Blocks(theme=theme) as demo:
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
|
153 |
|
154 |
Launch the Gradio app to allow user interaction
|
|
|
115 |
"""
|
116 |
# Display function
|
117 |
|
118 |
+
# def display_image():
|
119 |
+
# return "https://files.slack.com/files-tmb/T06QHKW6JFM-F077K96ABN3-2364e0b7a9/img_1576_720.jpg"
|
120 |
+
|
121 |
+
# with gr.Blocks(theme=theme) as demo:
|
122 |
+
# theme = gr.themes.Monochrome(
|
123 |
+
# primary_hue="amber",
|
124 |
+
# secondary_hue="rose",
|
125 |
+
# ).set(
|
126 |
+
# background_fill_primary='*primary_200',
|
127 |
+
# background_fill_primary_dark='*primary_200',
|
128 |
+
# background_fill_secondary='*secondary_300',
|
129 |
+
# background_fill_secondary_dark='*secondary_300',
|
130 |
+
# border_color_accent='*secondary_200',
|
131 |
+
# border_color_accent_dark='*secondary_600',
|
132 |
+
# border_color_accent_subdued='*secondary_200',
|
133 |
+
# border_color_primary='*secondary_300',
|
134 |
+
# block_border_color='*secondary_200',
|
135 |
+
# button_primary_background_fill='*secondary_300',
|
136 |
+
# button_primary_background_fill_dark='*secondary_300'
|
137 |
)
|
138 |
|
139 |
+
# # Setup the Gradio Blocks interface with custom layout components
|
140 |
+
# with gr.Blocks(theme=theme) as demo:
|
141 |
+
# gr.image(display_image(scale=1, min_width=200))
|
142 |
+
# gr.Markdown(welcome_message) # Display the formatted welcome message
|
143 |
+
# with gr.Row():
|
144 |
+
# with gr.Column():
|
145 |
+
# gr.Markdown(topics) # Show the topics on the left side
|
146 |
+
# with gr.Row():
|
147 |
+
# with gr.Column():
|
148 |
+
# question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
149 |
+
# answer = gr.Textbox(label="GloBot Response", placeholder="GloBot will respond here...", interactive=False, lines=10)
|
150 |
+
# submit_button = gr.Button("Submit")
|
151 |
+
# submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
152 |
|
153 |
|
154 |
Launch the Gradio app to allow user interaction
|