fix: close #6 - fix example_usage.py port from 5010 to 5012 to match app.py default

This commit is contained in:
Jarian 2026-07-05 12:47:57 +00:00
parent 564c68e002
commit 2647baddee

View File

@ -17,7 +17,7 @@ Jamie: And I'm Jamie. Today we're diving into the latest AEW Dynamite recap from
Alex: First off, the article mentions Forbes' "RealTime" platform. That's basically a livesports aggregator, pulling in live scores, promos, and instant fan reactions via push notifications."""
# URL of your Flask server (adjust as needed)
url = "http://localhost:5010/tts"
url = "http://localhost:5012/tts"
# Prepare the request payload
payload = {"text": sample_text, "title": "aeW_dynamite_recap"}
@ -43,7 +43,7 @@ Alex: First off, the article mentions Forbes' "RealTime" platform. That's bas
print(response.text)
except requests.exceptions.ConnectionError:
print("✗ Cannot connect to server. Make sure Flask app is running on port 5010")
print("✗ Cannot connect to server. Make sure Flask app is running on port 5012")
except Exception as e:
print(f"✗ Unexpected error: {e}")