Update space
Browse files
app.py
CHANGED
@@ -112,7 +112,7 @@ def prepare_topic(selected_topic):
|
|
112 |
if full_topic == selected_topic:
|
113 |
topic = row["Topic"]
|
114 |
date = row["Date"]
|
115 |
-
message = f"Please prepare a
|
116 |
print(f"Generated preparation message: {message}") # Debug print
|
117 |
return message
|
118 |
|
@@ -148,7 +148,7 @@ with gr.Blocks() as demo:
|
|
148 |
value="https://id2223kth.github.io/schedule/",
|
149 |
label="Table URL"
|
150 |
)
|
151 |
-
table_output = gr.HTML(label="Extracted Table")
|
152 |
extract_btn = gr.Button("Extract Table")
|
153 |
|
154 |
# Dropdown for selecting topic
|
@@ -164,7 +164,7 @@ with gr.Blocks() as demo:
|
|
164 |
chatbot = gr.Chatbot()
|
165 |
msg = gr.Textbox(label="Message")
|
166 |
system_message = gr.Textbox(
|
167 |
-
value="
|
168 |
label="System message"
|
169 |
)
|
170 |
|
|
|
112 |
if full_topic == selected_topic:
|
113 |
topic = row["Topic"]
|
114 |
date = row["Date"]
|
115 |
+
message = f"Please prepare a 15-minutes reading material covering main topics for '{topic}' lecture scheduled for {date}"
|
116 |
print(f"Generated preparation message: {message}") # Debug print
|
117 |
return message
|
118 |
|
|
|
148 |
value="https://id2223kth.github.io/schedule/",
|
149 |
label="Table URL"
|
150 |
)
|
151 |
+
#table_output = gr.HTML(label="Extracted Table")
|
152 |
extract_btn = gr.Button("Extract Table")
|
153 |
|
154 |
# Dropdown for selecting topic
|
|
|
164 |
chatbot = gr.Chatbot()
|
165 |
msg = gr.Textbox(label="Message")
|
166 |
system_message = gr.Textbox(
|
167 |
+
value="Students lecture preparation companion.",
|
168 |
label="System message"
|
169 |
)
|
170 |
|