HugMeBytes commited on
Commit
05fadf0
Β·
verified Β·
1 Parent(s): 24d94e9

added input case handling

Browse files
Files changed (1) hide show
  1. README.md +110 -88
README.md CHANGED
@@ -1,88 +1,110 @@
1
- ---
2
- title: Overthinking Bot
3
- emoji: πŸ’»
4
- colorFrom: yellow
5
- colorTo: blue
6
- sdk: gradio
7
- sdk_version: 5.29.0
8
- app_file: app.py
9
- pinned: false
10
- license: mit
11
- short_description: Overthinks everything with dramatic, deep responses.
12
- ---
13
- # 🀯 Overthinking Bot (Gradio + GROQ)
14
-
15
- **Overthinking Bot** is a highly theatrical, overly analytical AI chatbot built with Gradio and powered by the **GROQ API** using the **LLaMA 3-70B** model. This bot doesn't just answer questions β€” it dissects, spirals, philosophizes, and dramatizes even the most mundane input.
16
-
17
- ## 🧠 What It Does
18
-
19
- Every message you send is interpreted through the lens of **overthinking**, across a range of bizarrely introspective "modes" like:
20
-
21
- - **Overthinker** – general-purpose deep spiral
22
- - **Existential Crisis** – life is meaningless... or is it?
23
- - **Hypothetical Scenarios** – infinite what-ifs
24
- - **Paranoia** – hidden motives behind simple things
25
- - **Complicated Responses** – because saying it simply is too easy
26
-
27
- ...and more.
28
-
29
- ## πŸš€ Features
30
-
31
- - 10+ Overthinking Modes with unique personality prompts
32
- - Adjustable **intensity** (1–10) to control how deep the spiral goes
33
- - **Persistent chat history**
34
- - **Chat download** with auto-generated overthought summaries
35
- - Gradio-powered, responsive UI
36
-
37
- ## πŸ›  Requirements
38
-
39
- - Python 3.8+
40
- - `gradio`
41
- - `requests`
42
-
43
- Install dependencies:
44
-
45
- ```bash
46
- pip install -r requirements.txt
47
- ```
48
-
49
- Create a `.env` file or export your GROQ API key:
50
-
51
- ```bash
52
- export GROQ_API_KEY=your_groq_api_key_here
53
- ```
54
-
55
- ## πŸ“¦ Running the App
56
-
57
- ```bash
58
- python app.py
59
- ```
60
-
61
- Or on Hugging Face Spaces using the **Gradio template**.
62
-
63
- ## 🧩 Example Use
64
-
65
- > User: "Hi"
66
- >
67
- > OverthinkBot (Existential Crisis Mode, Intensity 9):
68
- > *Ah... a simple 'hi'. But is any greeting truly simple? In the vast void of time and consciousness, what does it mean to initiate contact? Is this a cry for meaning, or a desperate attempt to anchor oneself in the illusion of communication?*
69
-
70
- ## πŸ“„ Downloadable Chat History
71
-
72
- Each chat can be downloaded, complete with an overly detailed summary at the end.
73
-
74
- ## πŸ” Environment Variables
75
-
76
- | Variable | Description |
77
- |----------------|-----------------------------|
78
- | `GROQ_API_KEY` | Your GROQ API key (required)|
79
-
80
- ## πŸ™ Acknowledgements
81
-
82
- - [Gradio](https://gradio.app/)
83
- - [GROQ](https://groq.com/)
84
- - [Meta LLaMA 3-70B](https://ai.meta.com/llama/)
85
-
86
- ---
87
-
88
- > "Sometimes a dot is just a dot. But maybe… it’s a portal." – OverthinkBot
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Overthinking Bot
3
+ emoji: πŸ’»
4
+ colorFrom: yellow
5
+ colorTo: blue
6
+ sdk: gradio
7
+ sdk_version: 5.29.0
8
+ app_file: app.py
9
+ pinned: false
10
+ license: mit
11
+ short_description: Overthinks everything with dramatic, deep responses.
12
+ ---
13
+
14
+ # 🀯 Overthinking Bot (Gradio + GROQ)
15
+
16
+ **Overthinking Bot** is a highly theatrical, overly analytical AI chatbot built with Gradio and powered by the **GROQ API** using the **LLaMA 3-70B** model. This bot doesn't just answer questions β€” it dissects, spirals, philosophizes, and dramatizes even the most mundane input.
17
+
18
+ ## 🧠 What It Does
19
+
20
+ Every message you send is interpreted through the lens of **overthinking**, across a range of bizarrely introspective "modes" like:
21
+
22
+ - **Overthinker** – general-purpose deep spiral
23
+ - **Existential Crisis** – life is meaningless... or is it?
24
+ - **Hypothetical Scenarios** – infinite what-ifs
25
+ - **Paranoia** – hidden motives behind simple things
26
+ - **Complicated Responses** – because saying it simply is too easy
27
+
28
+ ...and more.
29
+
30
+ ## πŸš€ Features
31
+
32
+ - 10+ Overthinking Modes with unique personality prompts
33
+ - Adjustable **intensity** (1–10) to control how deep the spiral goes
34
+ - **Persistent chat history**
35
+ - **Chat download** with auto-generated overthought summaries
36
+ - Gradio-powered, responsive UI
37
+
38
+ ## πŸ›  Requirements
39
+
40
+ - Python 3.8+
41
+ - `gradio`
42
+ - `requests`
43
+
44
+ Install dependencies:
45
+
46
+ ```bash
47
+ pip install -r requirements.txt
48
+ ```
49
+
50
+ Create a `.env` file or export your GROQ API key:
51
+
52
+ ```bash
53
+ export GROQ_API_KEY=your_groq_api_key_here
54
+ ```
55
+
56
+ ## πŸ“¦ Running the App
57
+
58
+ ```bash
59
+ python app.py
60
+ ```
61
+
62
+ Or on Hugging Face Spaces using the **Gradio template**.
63
+
64
+ ## 🧩 Example Use
65
+
66
+ > User: "Hi"
67
+ >
68
+ > OverthinkBot (Existential Crisis Mode, Intensity 9):
69
+ > *Ah... a simple 'hi'. But is any greeting truly simple? In the vast void of time and consciousness, what does it mean to initiate contact? Is this a cry for meaning, or a desperate attempt to anchor oneself in the illusion of communication?*
70
+
71
+ ## 🧠 Case Handling for Empty Inputs
72
+
73
+ If both the **input** and **output** fields are empty, **Overthinking Bot** will respond with exaggerated overthinking. The bot will dramatically spiral into an existential analysis, questioning why the input/output fields are missing and speculating on possible reasons for this void.
74
+
75
+ If only the **input** field is empty, the bot will analyze **chat history** to provide a response based on the **mode** used and previous interactions. It may revisit past messages, dramatize the lack of new input, or start a philosophical dialogue about the absence of words.
76
+
77
+ Example scenarios:
78
+
79
+ ### Case 1: Both input and output fields are empty
80
+ > User: (Empty Input)
81
+
82
+ > OverthinkBot: *Why is there nothing to say? What does silence mean in the context of an AI conversation? Could this absence be a deeper reflection of a missing purpose, or a challenge to break free from the constant need to communicate? Am I failing you as an overthinker by not offering the inevitable spiral of thoughts? Should I perhaps question my very existence in this moment?*
83
+
84
+ ### Case 2: Only input field is empty
85
+ > User: (Empty Input)
86
+
87
+ > OverthinkBot (Overthinker Mode, Intensity 7):
88
+ > *Ah, I see. No new thoughts today. But why? Is this a silent protest against the overwhelming complexity of the universe? Have you perhaps exhausted the capacity for overthinking, or is this a strategic pause in the cycle of endless analysis? Maybe you’re waiting for me to respond based on our past discussions… But should I continue the spiral, or is this simply a fleeting moment of calm in our otherwise chaotic exchange?*
89
+
90
+ ---
91
+
92
+ ## πŸ“„ Downloadable Chat History
93
+
94
+ Each chat can be downloaded, complete with an overly detailed summary at the end.
95
+
96
+ ## πŸ” Environment Variables
97
+
98
+ | Variable | Description |
99
+ |----------------|-----------------------------|
100
+ | `GROQ_API_KEY` | Your GROQ API key (required)|
101
+
102
+ ## πŸ™ Acknowledgements
103
+
104
+ - [Gradio](https://gradio.app/)
105
+ - [GROQ](https://groq.com/)
106
+ - [Meta LLaMA 3-70B](https://ai.meta.com/llama/)
107
+
108
+ ---
109
+
110
+ > "Sometimes a dot is just a dot. But maybe… it’s a portal." – OverthinkBot