Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from text_generation import Client
|
3 |
|
4 |
-
endpoint_url = "
|
5 |
client = Client(endpoint_url)
|
6 |
|
7 |
text = client.generate("Why is the sky blue?").generated_text
|
|
|
1 |
import gradio as gr
|
2 |
from text_generation import Client
|
3 |
|
4 |
+
endpoint_url = "http://127.0.0.1:8080"
|
5 |
client = Client(endpoint_url)
|
6 |
|
7 |
text = client.generate("Why is the sky blue?").generated_text
|