Add reqs
Browse files666 666 666 fuck snokw12
app.py
CHANGED
@@ -28,12 +28,13 @@ def background_interaction():
|
|
28 |
# Gradio interface with IP display and speech-to-text
|
29 |
iface = gr.Interface(
|
30 |
[get_public_ip, transcribe_audio],
|
31 |
-
[gr.
|
32 |
-
[gr.
|
33 |
title="Public IP Retriever & Whisper Transcription",
|
34 |
description="Get your approximate public IP and transcribe audio using Whisper."
|
35 |
)
|
36 |
|
|
|
37 |
# Start background interaction thread (optional)
|
38 |
interaction_thread = threading.Thread(target=background_interaction)
|
39 |
interaction_thread.start()
|
|
|
28 |
# Gradio interface with IP display and speech-to-text
|
29 |
iface = gr.Interface(
|
30 |
[get_public_ip, transcribe_audio],
|
31 |
+
[gr.Textbox(lines=1, placeholder="Public IP will appear here"), gr.Audio(source="microphone", type="filepath")],
|
32 |
+
[gr.Textbox(), gr.Textbox()],
|
33 |
title="Public IP Retriever & Whisper Transcription",
|
34 |
description="Get your approximate public IP and transcribe audio using Whisper."
|
35 |
)
|
36 |
|
37 |
+
|
38 |
# Start background interaction thread (optional)
|
39 |
interaction_thread = threading.Thread(target=background_interaction)
|
40 |
interaction_thread.start()
|