Spaces:
Running
Running
RemiFabre commited on
Commit ·
4cbb336
1
Parent(s): a30f4a8
Revert to default port, mention both 7860 and 7861 everywhere
Browse files- README.md +1 -1
- index.html +1 -1
- src/feeling_machine/main.py +4 -8
README.md
CHANGED
|
@@ -37,7 +37,7 @@ cd src/feeling_machine
|
|
| 37 |
python main.py --gradio
|
| 38 |
```
|
| 39 |
|
| 40 |
-
Then open http://127.0.0.1:7861/
|
| 41 |
|
| 42 |
## Classic Emotions
|
| 43 |
|
|
|
|
| 37 |
python main.py --gradio
|
| 38 |
```
|
| 39 |
|
| 40 |
+
Then open http://127.0.0.1:7860/ or http://127.0.0.1:7861/
|
| 41 |
|
| 42 |
## Classic Emotions
|
| 43 |
|
index.html
CHANGED
|
@@ -445,7 +445,7 @@
|
|
| 445 |
<div class="step-title">Run the app</div>
|
| 446 |
<div class="step-body">
|
| 447 |
<code>cd src/feeling_machine && python main.py --gradio</code><br>
|
| 448 |
-
Then open <strong>http://127.0.0.1:7861/</strong>
|
| 449 |
</div>
|
| 450 |
</div>
|
| 451 |
</li>
|
|
|
|
| 445 |
<div class="step-title">Run the app</div>
|
| 446 |
<div class="step-body">
|
| 447 |
<code>cd src/feeling_machine && python main.py --gradio</code><br>
|
| 448 |
+
Then open <strong>http://127.0.0.1:7860/</strong> or <strong>http://127.0.0.1:7861/</strong>
|
| 449 |
</div>
|
| 450 |
</div>
|
| 451 |
</li>
|
src/feeling_machine/main.py
CHANGED
|
@@ -21,9 +21,6 @@ from feeling_machine.utils import (
|
|
| 21 |
log_connection_troubleshooting,
|
| 22 |
)
|
| 23 |
|
| 24 |
-
# Server port for the Gradio interface
|
| 25 |
-
APP_PORT = 7870
|
| 26 |
-
|
| 27 |
|
| 28 |
def update_chatbot(chatbot: List[Dict[str, Any]], response: Dict[str, Any]) -> List[Dict[str, Any]]:
|
| 29 |
"""Update the chatbot with AdditionalOutputs."""
|
|
@@ -202,11 +199,10 @@ def run(
|
|
| 202 |
if args.gradio:
|
| 203 |
print("\n" + "=" * 50)
|
| 204 |
print(" Feeling Machine is running!")
|
| 205 |
-
print(
|
|
|
|
| 206 |
print("=" * 50 + "\n")
|
| 207 |
-
|
| 208 |
-
else:
|
| 209 |
-
stream_manager.launch()
|
| 210 |
except KeyboardInterrupt:
|
| 211 |
logger.info("Keyboard interruption in main thread... closing server.")
|
| 212 |
finally:
|
|
@@ -232,7 +228,7 @@ def run(
|
|
| 232 |
class FeelingMachine(ReachyMiniApp): # type: ignore[misc]
|
| 233 |
"""Reachy Mini Apps entry point for the conversation app."""
|
| 234 |
|
| 235 |
-
custom_app_url =
|
| 236 |
dont_start_webserver = False
|
| 237 |
|
| 238 |
def run(self, reachy_mini: ReachyMini, stop_event: threading.Event) -> None:
|
|
|
|
| 21 |
log_connection_troubleshooting,
|
| 22 |
)
|
| 23 |
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
def update_chatbot(chatbot: List[Dict[str, Any]], response: Dict[str, Any]) -> List[Dict[str, Any]]:
|
| 26 |
"""Update the chatbot with AdditionalOutputs."""
|
|
|
|
| 199 |
if args.gradio:
|
| 200 |
print("\n" + "=" * 50)
|
| 201 |
print(" Feeling Machine is running!")
|
| 202 |
+
print(" Open: http://127.0.0.1:7860/")
|
| 203 |
+
print(" or http://127.0.0.1:7861/")
|
| 204 |
print("=" * 50 + "\n")
|
| 205 |
+
stream_manager.launch()
|
|
|
|
|
|
|
| 206 |
except KeyboardInterrupt:
|
| 207 |
logger.info("Keyboard interruption in main thread... closing server.")
|
| 208 |
finally:
|
|
|
|
| 228 |
class FeelingMachine(ReachyMiniApp): # type: ignore[misc]
|
| 229 |
"""Reachy Mini Apps entry point for the conversation app."""
|
| 230 |
|
| 231 |
+
custom_app_url = "http://0.0.0.0:7860/"
|
| 232 |
dont_start_webserver = False
|
| 233 |
|
| 234 |
def run(self, reachy_mini: ReachyMini, stop_event: threading.Event) -> None:
|