Spaces:
Runtime error
Runtime error
levisstrauss commited on
Commit Β·
9e49eef
1
Parent(s): f800176
Fix dependencies issues
Browse files- app.py +5 -9
- requirements.txt +2 -8
app.py
CHANGED
|
@@ -1028,7 +1028,7 @@ def create_interface():
|
|
| 1028 |
return filename
|
| 1029 |
|
| 1030 |
# Build the interface
|
| 1031 |
-
with gr.Blocks(
|
| 1032 |
|
| 1033 |
# Header
|
| 1034 |
gr.HTML("""
|
|
@@ -1099,29 +1099,25 @@ def create_interface():
|
|
| 1099 |
with gr.Tab("π€ User Stories"):
|
| 1100 |
user_stories_output = gr.Textbox(
|
| 1101 |
label="User Stories",
|
| 1102 |
-
lines=15
|
| 1103 |
-
show_copy_button=True
|
| 1104 |
)
|
| 1105 |
|
| 1106 |
with gr.Tab("π¦ Features"):
|
| 1107 |
features_output = gr.Textbox(
|
| 1108 |
label="Product Features",
|
| 1109 |
-
lines=15
|
| 1110 |
-
show_copy_button=True
|
| 1111 |
)
|
| 1112 |
|
| 1113 |
with gr.Tab("π§ Tasks"):
|
| 1114 |
tasks_output = gr.Textbox(
|
| 1115 |
label="Engineering Tasks",
|
| 1116 |
-
lines=15
|
| 1117 |
-
show_copy_button=True
|
| 1118 |
)
|
| 1119 |
|
| 1120 |
with gr.Tab("π Full Plan"):
|
| 1121 |
full_plan_output = gr.Textbox(
|
| 1122 |
label="Complete Project Plan",
|
| 1123 |
-
lines=20
|
| 1124 |
-
show_copy_button=True
|
| 1125 |
)
|
| 1126 |
|
| 1127 |
gr.Markdown("### π₯ Export")
|
|
|
|
| 1028 |
return filename
|
| 1029 |
|
| 1030 |
# Build the interface
|
| 1031 |
+
with gr.Blocks(title="AI Project Planner") as app:
|
| 1032 |
|
| 1033 |
# Header
|
| 1034 |
gr.HTML("""
|
|
|
|
| 1099 |
with gr.Tab("π€ User Stories"):
|
| 1100 |
user_stories_output = gr.Textbox(
|
| 1101 |
label="User Stories",
|
| 1102 |
+
lines=15
|
|
|
|
| 1103 |
)
|
| 1104 |
|
| 1105 |
with gr.Tab("π¦ Features"):
|
| 1106 |
features_output = gr.Textbox(
|
| 1107 |
label="Product Features",
|
| 1108 |
+
lines=15
|
|
|
|
| 1109 |
)
|
| 1110 |
|
| 1111 |
with gr.Tab("π§ Tasks"):
|
| 1112 |
tasks_output = gr.Textbox(
|
| 1113 |
label="Engineering Tasks",
|
| 1114 |
+
lines=15
|
|
|
|
| 1115 |
)
|
| 1116 |
|
| 1117 |
with gr.Tab("π Full Plan"):
|
| 1118 |
full_plan_output = gr.Textbox(
|
| 1119 |
label="Complete Project Plan",
|
| 1120 |
+
lines=20
|
|
|
|
| 1121 |
)
|
| 1122 |
|
| 1123 |
gr.Markdown("### π₯ Export")
|
requirements.txt
CHANGED
|
@@ -2,13 +2,7 @@
|
|
| 2 |
# For Hugging Face Spaces deployment
|
| 3 |
|
| 4 |
# Core Framework
|
| 5 |
-
gradio
|
| 6 |
-
|
| 7 |
-
# OpenAI API
|
| 8 |
openai>=1.0.0
|
| 9 |
-
|
| 10 |
-
# Data Processing
|
| 11 |
numpy>=1.24.0
|
| 12 |
-
|
| 13 |
-
# Environment Management
|
| 14 |
-
python-dotenv>=1.0.0
|
|
|
|
| 2 |
# For Hugging Face Spaces deployment
|
| 3 |
|
| 4 |
# Core Framework
|
| 5 |
+
gradio==4.44.0
|
|
|
|
|
|
|
| 6 |
openai>=1.0.0
|
|
|
|
|
|
|
| 7 |
numpy>=1.24.0
|
| 8 |
+
python-dotenv>=1.0.0
|
|
|
|
|
|