ffreemt commited on
Commit
874bd1c
1 Parent(s): 93c9911
Files changed (1) hide show
  1. app-org.py +4 -3
app-org.py CHANGED
@@ -14,6 +14,8 @@ torch
14
  import gradio as gr
15
  from transformers import AutoModel, AutoTokenizer # AutoModelForCausalLM,
16
 
 
 
17
  # device = "cuda" if torch.cuda.is_available() else "cpu"
18
 
19
  # tokenizer = AutoTokenizer.from_pretrained("stabilityai/StableBeluga2", use_fast=False)
@@ -43,8 +45,7 @@ gr.ChatInterface(
43
  chat,
44
  title="gradio-chatinterface-tryout",
45
  # description="fooling around",
46
- examples=[
47
- ["test me"],
48
- ],
49
  theme=gr.themes.Glass(text_size="sm", spacing_size="sm"),
50
  ).queue(max_size=2).launch()
 
14
  import gradio as gr
15
  from transformers import AutoModel, AutoTokenizer # AutoModelForCausalLM,
16
 
17
+ from examples_list import examples_list
18
+
19
  # device = "cuda" if torch.cuda.is_available() else "cpu"
20
 
21
  # tokenizer = AutoTokenizer.from_pretrained("stabilityai/StableBeluga2", use_fast=False)
 
45
  chat,
46
  title="gradio-chatinterface-tryout",
47
  # description="fooling around",
48
+ # examples=[["test me"],],
49
+ examples=examples_list,
 
50
  theme=gr.themes.Glass(text_size="sm", spacing_size="sm"),
51
  ).queue(max_size=2).launch()