mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-10 20:04:52 +00:00
Added space and replaced screenshots with llama
This commit is contained in:
parent
e49ecbf4e5
commit
117425564e
@ -101,7 +101,7 @@ gr.ChatInterface(
|
|||||||
inference,
|
inference,
|
||||||
chatbot=gr.Chatbot(height=300),
|
chatbot=gr.Chatbot(height=300),
|
||||||
textbox=gr.Textbox(placeholder="Chat with me!", container=False, scale=7),
|
textbox=gr.Textbox(placeholder="Chat with me!", container=False, scale=7),
|
||||||
description="This is the demo for Gradio UI consuming TGI endpoint with Falcon model.",
|
description="This is the demo for Gradio UI consuming TGI endpoint with LLaMA 2 7B-Chat model.",
|
||||||
title="Gradio 🤝 TGI",
|
title="Gradio 🤝 TGI",
|
||||||
examples=["Are tomatoes vegetables?"],
|
examples=["Are tomatoes vegetables?"],
|
||||||
retry_btn=None,
|
retry_btn=None,
|
||||||
@ -119,10 +119,15 @@ The UI looks like this 👇
|
|||||||
/>
|
/>
|
||||||
<img
|
<img
|
||||||
class="hidden dark:block"
|
class="hidden dark:block"
|
||||||
src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/tgi/gradio-tgi.png"
|
src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/tgi/gradio-tgi-dark.png"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
You can try the demo directly here 👇
|
||||||
|
|
||||||
|
<gradio-app space="merve/gradio-tgi-2"></gradio-app>
|
||||||
|
|
||||||
|
|
||||||
You can disable streaming mode using `return` instead of `yield` in your inference function.
|
You can disable streaming mode using `return` instead of `yield` in your inference function.
|
||||||
You can read more about how to customize a `ChatInterface` [here](https://www.gradio.app/guides/creating-a-chatbot-fast).
|
You can read more about how to customize a `ChatInterface` [here](https://www.gradio.app/guides/creating-a-chatbot-fast).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user