Update app.py
Browse files
app.py
CHANGED
|
@@ -180,15 +180,34 @@ with gr.Blocks(title="Screenplay Coverage Generator") as demo:
|
|
| 180 |
|
| 181 |
with gr.Tabs():
|
| 182 |
with gr.TabItem("Cleaned Screenplay"):
|
| 183 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 184 |
with gr.TabItem("Coverage"):
|
| 185 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 186 |
with gr.TabItem("Creative Analysis"):
|
| 187 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
with gr.TabItem("Post-Processed Analysis"):
|
| 189 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 190 |
with gr.TabItem("Market Analysis"):
|
| 191 |
-
|
|
|
|
|
|
|
|
|
|
| 192 |
|
| 193 |
process_btn.click(
|
| 194 |
fn=process_screenplay,
|
|
|
|
| 180 |
|
| 181 |
with gr.Tabs():
|
| 182 |
with gr.TabItem("Cleaned Screenplay"):
|
| 183 |
+
with gr.Row():
|
| 184 |
+
cleaned_output = gr.Textbox(label="Cleaned Screenplay", lines=10, show_copy_button=True)
|
| 185 |
+
with gr.Row():
|
| 186 |
+
gr.File(value="cleaned_screenplay_long.txt", label="Download Cleaned Screenplay")
|
| 187 |
+
|
| 188 |
with gr.TabItem("Coverage"):
|
| 189 |
+
with gr.Row():
|
| 190 |
+
coverage_output = gr.Textbox(label="Coverage Document", lines=10, show_copy_button=True)
|
| 191 |
+
with gr.Row():
|
| 192 |
+
gr.File(value="coverage.txt", label="Download Coverage")
|
| 193 |
+
|
| 194 |
with gr.TabItem("Creative Analysis"):
|
| 195 |
+
with gr.Row():
|
| 196 |
+
analysis_output = gr.Textbox(label="Creative Analysis", lines=10, show_copy_button=True)
|
| 197 |
+
with gr.Row():
|
| 198 |
+
gr.File(value="creative_analysis.txt", label="Download Creative Analysis")
|
| 199 |
+
|
| 200 |
with gr.TabItem("Post-Processed Analysis"):
|
| 201 |
+
with gr.Row():
|
| 202 |
+
post_process_output = gr.Textbox(label="Post-Processed Analysis", lines=10, show_copy_button=True)
|
| 203 |
+
with gr.Row():
|
| 204 |
+
gr.File(value="cleaned_creative_analysis.txt", label="Download Post-Processed Analysis")
|
| 205 |
+
|
| 206 |
with gr.TabItem("Market Analysis"):
|
| 207 |
+
with gr.Row():
|
| 208 |
+
market_output = gr.Textbox(label="Market Analysis", lines=10, show_copy_button=True)
|
| 209 |
+
with gr.Row():
|
| 210 |
+
gr.File(value="market_analysis.txt", label="Download Market Analysis")
|
| 211 |
|
| 212 |
process_btn.click(
|
| 213 |
fn=process_screenplay,
|