KrishnaHuYaar commited on
Commit
af0bfd8
·
verified ·
1 Parent(s): 7d741de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -11
app.py CHANGED
@@ -14,25 +14,37 @@ def analyze_text(input_text):
14
  return result.content
15
 
16
  except Exception as e:
17
- return f"❌ Error occurred:\n{str(e)}"
18
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
- with gr.Blocks(title="Taskify AI") as demo:
21
- gr.Markdown("## 🧠 Taskify AI")
22
- gr.Markdown("**Turn text into clear actions**")
23
 
24
  input_box = gr.Textbox(
25
- label="Paste your text",
26
  lines=10,
27
  placeholder="Paste notes, article, or explanation here..."
28
  )
29
 
30
- output_box = gr.Textbox(
31
- label="AI Output",
32
- lines=15
33
- )
34
 
35
- analyze_btn = gr.Button("Analyze")
 
 
 
36
 
37
  analyze_btn.click(
38
  fn=analyze_text,
 
14
  return result.content
15
 
16
  except Exception as e:
17
+ return f"❌ Error:\n{str(e)}"
18
+
19
+ with gr.Blocks(css="""
20
+ #output {
21
+ background-color: #f9fafb;
22
+ border-radius: 10px;
23
+ padding: 16px;
24
+ }
25
+ """) as demo:
26
+
27
+ gr.Markdown(
28
+ """
29
+ # 🧠 Taskify AI
30
+ **Turn text into clear actions**
31
+ """
32
+ )
33
 
34
+ gr.Markdown("Paste any text below and get a clear summary, tasks, and questions.")
 
 
35
 
36
  input_box = gr.Textbox(
37
+ label="📥 Paste your text",
38
  lines=10,
39
  placeholder="Paste notes, article, or explanation here..."
40
  )
41
 
42
+ analyze_btn = gr.Button("🚀 Analyze", variant="primary")
 
 
 
43
 
44
+ output_box = gr.Markdown(
45
+ label="📤 AI Output",
46
+ elem_id="output"
47
+ )
48
 
49
  analyze_btn.click(
50
  fn=analyze_text,