File size: 8,092 Bytes
0d6f6d3
 
 
 
 
 
 
 
 
 
 
 
8dcd60e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
---
title: GeoTalk
emoji: πŸš€
colorFrom: green
colorTo: yellow
sdk: gradio
sdk_version: 6.19.0
python_version: '3.13'
app_file: app.py
pinned: false
---

<div align="center">

<!-- Animated SVG Banner -->
<svg width="800" height="200" xmlns="http://www.w3.org/2000/svg">
  <defs>
    <linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%">
      <stop offset="0%" style="stop-color:#1a1a2e"/>
      <stop offset="50%" style="stop-color:#16213e"/>
      <stop offset="100%" style="stop-color:#0f3460"/>
    </linearGradient>
    <linearGradient id="text-grad" x1="0%" y1="0%" x2="100%" y2="0%">
      <stop offset="0%" style="stop-color:#4caf50"/>
      <stop offset="50%" style="stop-color:#4fc3f7"/>
      <stop offset="100%" style="stop-color:#9c27b0"/>
    </linearGradient>
  </defs>
  <rect width="800" height="200" rx="16" fill="url(#bg)"/>
  <text x="400" y="85" text-anchor="middle" font-family="Arial, sans-serif" font-size="48" font-weight="bold" fill="url(#text-grad)">πŸŒπŸŽ™οΈ GeoTalk</text>
  <text x="400" y="130" text-anchor="middle" font-family="Arial, sans-serif" font-size="18" fill="#e0e0e0">AI-Generated Geoscience Debate Podcast</text>
  <text x="400" y="165" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#888">Powered by LLMs β€’ Edge-TTS β€’ Three.js Robot Avatars</text>
  <!-- Animated dots -->
  <circle cx="300" cy="180" r="3" fill="#4caf50">
    <animate attributeName="opacity" values="1;0.3;1" dur="2s" repeatCount="indefinite"/>
  </circle>
  <circle cx="400" cy="180" r="3" fill="#4fc3f7">
    <animate attributeName="opacity" values="0.3;1;0.3" dur="2s" repeatCount="indefinite"/>
  </circle>
  <circle cx="500" cy="180" r="3" fill="#9c27b0">
    <animate attributeName="opacity" values="1;0.3;1" dur="2s" repeatCount="indefinite" begin="0.5s"/>
  </circle>
</svg>

**Watch AI geoscientists debate your geological data β€” live, with animated robot avatars!**

[![Hugging Face Space](https://img.shields.io/badge/πŸ€—%20Live%20Demo-GeoTalk-blue?style=for-the-badge)](https://huggingface.co/spaces/ShebMichel/GeoTalk)
[![Python](https://img.shields.io/badge/Python-3.13-green?style=flat-square&logo=python)](https://python.org)
[![Gradio](https://img.shields.io/badge/Gradio-6.19-orange?style=flat-square)](https://gradio.app)

</div>

---

## 🎬 What is GeoTalk?

GeoTalk is an AI-powered geoscience podcast generator that turns your geological data into an engaging debate between AI scientists β€” complete with **animated 3D robot avatars**, **text-to-speech voices**, and **live captions**.

Upload a core photo, well log, or outcrop image, and watch two AI geoscientists (plus a moderator) debate the interpretation in real-time.

<div align="center">

```
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  πŸŽ™οΈ GeoTalk Live                          ● LIVE       β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚             β”‚          β”‚                                β”‚
β”‚   πŸ€– Robot A β”‚  πŸŽ™οΈ Chair β”‚   πŸ€– Robot B                   β”‚
β”‚  (Speaker 1) β”‚(Moderator)β”‚  (Speaker 2)                  β”‚
β”‚             β”‚          β”‚                                β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Dr. Vasquez: "The laminations suggest a tidal flat..." β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  ⏸ ════════════════════════ 2:34 / 5:12                β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

</div>

## ✨ Features

| Feature | Description |
|---------|-------------|
| πŸ”¬ **Core Talk** | Two petrographers debate your core/thin section photo |
| 🩺 **Log Doctor** | Two analysts diagnose your well log data (LAS files) like doctors diagnosing a patient |
| πŸ•οΈ **Field Trip FM** | A professor and student narrate a virtual field trip to your outcrop |
| πŸŽ™οΈ **Chair/Moderator** | A professional host introduces the topic, speakers, and guides the debate |
| πŸ€– **3D Robot Avatars** | Reachy Mini-inspired robots animate per speaker turn (Three.js) |
| πŸ—£οΈ **Multi-voice TTS** | Each character has a distinct voice (Edge-TTS) |
| πŸ“ **Live Captions** | Real-time subtitles synced to audio playback |
| ▢️ **Auto-play** | Episode starts automatically when ready |

## πŸ—οΈ Architecture

```
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  User Input  │────▢│  Vision Model    │────▢│  LLM Script β”‚
β”‚  (Image/LAS) β”‚     β”‚  (Qwen2.5-VL)   β”‚     β”‚  Generator  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
                                                      β”‚
                     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”             β”‚
                     β”‚   Edge-TTS       β”‚β—€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                     β”‚  (Multi-voice)   β”‚
                     β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              β”‚
                     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                     β”‚  Robot Viewer    β”‚
                     β”‚  (Three.js +    β”‚
                     β”‚   Audio Sync)   β”‚
                     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

**Pipeline:**
1. **Vision Analysis** β€” Qwen2.5-VL-72B describes the uploaded geological image
2. **Script Generation** β€” Qwen2.5-72B writes a multi-character debate script (with Chair)
3. **Text-to-Speech** β€” Edge-TTS generates distinct voices for each character
4. **Live Viewer** β€” Three.js renders animated robots synced to audio playback

## πŸš€ Quick Start

### Run locally

```bash
git clone https://github.com/ShebMichel/GeoTalk.git
cd GeoTalk
pip install -r requirements.txt
export HF_TOKEN="your_huggingface_token"
python app.py
```

### Try the live demo

πŸ‘‰ **[Launch GeoTalk on Hugging Face Spaces](https://huggingface.co/spaces/ShebMichel/GeoTalk)**

## πŸ“ Project Structure

```
GeoTalk/
β”œβ”€β”€ app.py              # Gradio UI + tab functions
β”œβ”€β”€ backend.py          # LLM client, TTS generation, script parsing
β”œβ”€β”€ robot_viewer.html   # Three.js robot viewer (self-contained)
β”œβ”€β”€ requirements.txt    # Python dependencies
└── README.md           # This file
```

## πŸ€– Robot Avatars

The 3D robot avatars are inspired by [Reachy Mini](https://huggingface.co/spaces/build-small-hackathon/small-talk) from the Small Talk project. They feature:

- **Procedural Three.js geometry** β€” no external model files needed
- **Per-speaker animations** β€” talking (head bob, antenna wiggle), listening (head tilt), idle (gentle sway)
- **Visual feedback** β€” active speaker panel highlighted with colored border
- **Chair indicator** β€” center panel with pulsing microphone icon

## πŸ› οΈ Tech Stack

- **Frontend:** Three.js, Gradio, HTML5 Audio
- **LLM:** Qwen2.5-72B-Instruct (script generation)
- **Vision:** Qwen2.5-VL-72B-Instruct (image analysis)
- **TTS:** Edge-TTS (Microsoft Neural voices)
- **Hosting:** Hugging Face Spaces

## πŸ“„ License

MIT

---

<div align="center">
  <sub>Built with ❀️ for the geoscience community</sub>
</div>