fix: close #6 - fix example_usage.py port from 5010 to 5012 to match app.py default
This commit is contained in:
parent
564c68e002
commit
2647baddee
@ -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' "Real‑Time" platform. That's basically a live‑sports aggregator, pulling in live scores, promos, and instant fan reactions via push notifications."""
|
Alex: First off, the article mentions Forbes' "Real‑Time" platform. That's basically a live‑sports aggregator, pulling in live scores, promos, and instant fan reactions via push notifications."""
|
||||||
|
|
||||||
# URL of your Flask server (adjust as needed)
|
# URL of your Flask server (adjust as needed)
|
||||||
url = "http://localhost:5010/tts"
|
url = "http://localhost:5012/tts"
|
||||||
|
|
||||||
# Prepare the request payload
|
# Prepare the request payload
|
||||||
payload = {"text": sample_text, "title": "aeW_dynamite_recap"}
|
payload = {"text": sample_text, "title": "aeW_dynamite_recap"}
|
||||||
@ -43,7 +43,7 @@ Alex: First off, the article mentions Forbes' "Real‑Time" platform. That's bas
|
|||||||
print(response.text)
|
print(response.text)
|
||||||
|
|
||||||
except requests.exceptions.ConnectionError:
|
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:
|
except Exception as e:
|
||||||
print(f"✗ Unexpected error: {e}")
|
print(f"✗ Unexpected error: {e}")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user