Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,8 @@ import pandas as pd
|
|
| 4 |
import os
|
| 5 |
from run_eval import run_generate
|
| 6 |
|
|
|
|
|
|
|
| 7 |
st.write("# GupShup")
|
| 8 |
st.write("## Summarizing Open-Domain Code-Switched Conversations")
|
| 9 |
task_type = st.sidebar.selectbox(
|
|
@@ -23,7 +25,7 @@ st.sidebar.markdown("<h1 style='text-align: center;'>OR</h1>", unsafe_allow_html
|
|
| 23 |
|
| 24 |
|
| 25 |
conv_form = st.sidebar.form(key="conv_form")
|
| 26 |
-
conv_ip = conv_form.text_input(label="Please enter the conversastion")
|
| 27 |
conv_submit_button = conv_form.form_submit_button(label="Submit")
|
| 28 |
st.write("### Task Type:", task_type)
|
| 29 |
st.write("### Model:", model_name)
|
|
|
|
| 4 |
import os
|
| 5 |
from run_eval import run_generate
|
| 6 |
|
| 7 |
+
default_value = "summarize: Debanjan: Hi! kya tum EMNLP attend kar rahein ho? Anish: nehi I will skip this year. what about you? Debanjan: mein virtually attend kar raha hu Debanjan: hopefully can attend the conference in person from next year... Anish: haan dekhtey hain, in person attend karney mein alaag hi maaza hain Debanjan: but I also like this hybrid mode allows to attend the sessions in case you do not make it Anish: right Anish: if you are attending to mujhe interesting papers kuch bhej dena Debanjan: sure"
|
| 8 |
+
|
| 9 |
st.write("# GupShup")
|
| 10 |
st.write("## Summarizing Open-Domain Code-Switched Conversations")
|
| 11 |
task_type = st.sidebar.selectbox(
|
|
|
|
| 25 |
|
| 26 |
|
| 27 |
conv_form = st.sidebar.form(key="conv_form")
|
| 28 |
+
conv_ip = conv_form.text_input(label="Please enter the conversastion", value=default_value)
|
| 29 |
conv_submit_button = conv_form.form_submit_button(label="Submit")
|
| 30 |
st.write("### Task Type:", task_type)
|
| 31 |
st.write("### Model:", model_name)
|