Tonic commited on
Commit
affd952
·
verified ·
1 Parent(s): c0d4e9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -144,11 +144,14 @@ def evaluate_content(user_input):
144
  iface = gr.Interface(
145
  fn=evaluate_content,
146
  inputs=[gr.Textbox(label="User Input")],
147
- outputs=[gr.Textbox(label="Generated Text"), gr.Textbox(label="Hallucination Score")],
 
 
 
 
 
148
  live=False,
149
  title="👋🏻Welcome to 🌟Team Tonic's 🧠🌈SureRAG🔴🟢",
150
  description="Nothing is more important than reputation. However you can create automated content pipelines for public facing content. How can businesses grow their reputation while mitigating risks due to AI? How it works : vectara rag retrieval reranking and summarization is used to return content. then an LLM generates content based on these returns. this content is checked for hallucination before being validated for publishing on twitter. SureRAG is fixed on Tonic-AI's README files as a Demo, provide input to generate a response. This response is checked by Vectara's HHME. Check out the model [vectara/hallucination_evaluation_model](https://huggingface.co/vectara/hallucination_evaluation_model) Join us : 🌟TeamTonic🌟 is always making cool demos! Join our active builder's🛠️community 👻 [![Join us on Discord](https://img.shields.io/discord/1109943800132010065?label=Discord&logo=discord&style=flat-square)](https://discord.gg/GWpVpekp) On 🤗Huggingface: [TeamTonic](https://huggingface.co/TeamTonic) & [MultiTransformer](https://huggingface.co/MultiTransformer) On 🌐Github: [Tonic-AI](https://github.com/tonic-ai) & contribute to 🌟 [DataTonic](https://github.com/Tonic-AI/DataTonic)",
151
  )
152
-
153
- # Launch the interface
154
  iface.launch()
 
144
  iface = gr.Interface(
145
  fn=evaluate_content,
146
  inputs=[gr.Textbox(label="User Input")],
147
+ outputs=[
148
+ gr.Textbox(label="Vectara Summary"),
149
+ gr.Textbox(label="Vectara Sources", lines=10),
150
+ gr.Textbox(label="Generated Text"),
151
+ gr.Textbox(label="Hallucination Score")
152
+ ],
153
  live=False,
154
  title="👋🏻Welcome to 🌟Team Tonic's 🧠🌈SureRAG🔴🟢",
155
  description="Nothing is more important than reputation. However you can create automated content pipelines for public facing content. How can businesses grow their reputation while mitigating risks due to AI? How it works : vectara rag retrieval reranking and summarization is used to return content. then an LLM generates content based on these returns. this content is checked for hallucination before being validated for publishing on twitter. SureRAG is fixed on Tonic-AI's README files as a Demo, provide input to generate a response. This response is checked by Vectara's HHME. Check out the model [vectara/hallucination_evaluation_model](https://huggingface.co/vectara/hallucination_evaluation_model) Join us : 🌟TeamTonic🌟 is always making cool demos! Join our active builder's🛠️community 👻 [![Join us on Discord](https://img.shields.io/discord/1109943800132010065?label=Discord&logo=discord&style=flat-square)](https://discord.gg/GWpVpekp) On 🤗Huggingface: [TeamTonic](https://huggingface.co/TeamTonic) & [MultiTransformer](https://huggingface.co/MultiTransformer) On 🌐Github: [Tonic-AI](https://github.com/tonic-ai) & contribute to 🌟 [DataTonic](https://github.com/Tonic-AI/DataTonic)",
156
  )
 
 
157
  iface.launch()