Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,11 +15,10 @@ import os
|
|
| 15 |
from gradio_client import Client
|
| 16 |
|
| 17 |
async def C(x):
|
| 18 |
-
client = Client("
|
| 19 |
result = client.predict(
|
| 20 |
"Make a detailed description of the image. This would be sufficient for an LLM to answer questions about it with just your answer.",
|
| 21 |
"ip.png",
|
| 22 |
-
api_name="/predict"
|
| 23 |
)
|
| 24 |
|
| 25 |
launch_time = datetime.datetime.utcnow()
|
|
@@ -28,8 +27,8 @@ ph = st.empty()
|
|
| 28 |
|
| 29 |
def syncMessages():
|
| 30 |
with ph.container():
|
| 31 |
-
st.markdown(f"`Status:` :green[**Running**]")
|
| 32 |
st.link_button(label="Invite the Bot", url="https://discord.com/api/oauth2/authorize?client_id=1116821362695221349&permissions=1067299753024&scope=bot", type="primary")
|
|
|
|
| 33 |
if os.listdir("data") == []:
|
| 34 |
return 0
|
| 35 |
dirs = st.tabs(os.listdir("data"))
|
|
|
|
| 15 |
from gradio_client import Client
|
| 16 |
|
| 17 |
async def C(x):
|
| 18 |
+
client = Client(src="ybelkada/llava-1.5-dlai")
|
| 19 |
result = client.predict(
|
| 20 |
"Make a detailed description of the image. This would be sufficient for an LLM to answer questions about it with just your answer.",
|
| 21 |
"ip.png",
|
|
|
|
| 22 |
)
|
| 23 |
|
| 24 |
launch_time = datetime.datetime.utcnow()
|
|
|
|
| 27 |
|
| 28 |
def syncMessages():
|
| 29 |
with ph.container():
|
|
|
|
| 30 |
st.link_button(label="Invite the Bot", url="https://discord.com/api/oauth2/authorize?client_id=1116821362695221349&permissions=1067299753024&scope=bot", type="primary")
|
| 31 |
+
st.markdown(f"`Status:` :green[**Running**]")
|
| 32 |
if os.listdir("data") == []:
|
| 33 |
return 0
|
| 34 |
dirs = st.tabs(os.listdir("data"))
|