Spaces:
Runtime error
Runtime error
File size: 426 Bytes
4c8c11f 1eb85f0 4c8c11f 1eb85f0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import gradio as gr
# def greet(name):
# return "Hello " + name + "!!"
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
# iface.launch()
from gradio_client import Client
client = Client("huggingface-projects/llama-2-13b-chat")
result = client.predict(
message="Hello!!",
request="Hello!!",
param_3=1024,
param_4=0.6,
param_5=0.9,
param_6=50,
param_7=1.2,
api_name="/chat"
)
print(result)
|