Spaces:
Runtime error
Runtime error
codewithRiz
commited on
Commit
•
6ad4114
1
Parent(s):
7ae0f94
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ import re
|
|
5 |
from gtts import gTTS
|
6 |
import os
|
7 |
import logging
|
|
|
8 |
|
9 |
# Set up logging
|
10 |
logging.basicConfig(filename='app.log', level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
@@ -97,5 +98,9 @@ iface = gr.Interface(
|
|
97 |
description="Enter a comment and get a response from the virtual marketer assistant. Download the response as an MP3 file."
|
98 |
)
|
99 |
|
|
|
|
|
|
|
|
|
100 |
if __name__ == "__main__":
|
101 |
iface.launch(share=True)
|
|
|
5 |
from gtts import gTTS
|
6 |
import os
|
7 |
import logging
|
8 |
+
from pyngrok import ngrok
|
9 |
|
10 |
# Set up logging
|
11 |
logging.basicConfig(filename='app.log', level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
|
|
98 |
description="Enter a comment and get a response from the virtual marketer assistant. Download the response as an MP3 file."
|
99 |
)
|
100 |
|
101 |
+
# Create a tunnel
|
102 |
+
public_url = ngrok.connect(7860)
|
103 |
+
print("Public URL:", public_url)
|
104 |
+
|
105 |
if __name__ == "__main__":
|
106 |
iface.launch(share=True)
|