johann22 commited on
Commit
2743076
β€’
1 Parent(s): 1623898

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -9,7 +9,6 @@ import requests
9
  import io
10
  import uuid
11
  base_url="https://johann22-chat-diffusion.hf.space/"
12
-
13
  loaded_model=[]
14
  for i,model in enumerate(models):
15
  loaded_model.append(gr.load(f'models/{model}'))
@@ -18,8 +17,13 @@ print (loaded_model)
18
  now = datetime.now()
19
  date_time_str = now.strftime("%Y-%m-%d %H:%M:%S")
20
 
21
- client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
22
- model = gr.load("models/dreamlike-art/dreamlike-photoreal-2.0")
 
 
 
 
 
23
  history = []
24
 
25
  def infer(txt):
@@ -111,4 +115,4 @@ with gr.Blocks() as iface:
111
  sub_b = submit_b.click(run, [msg,chatbot,model_drop],[msg,chatbot,sumbox])
112
  sub_e = msg.submit(run, [msg, chatbot,model_drop], [msg, chatbot,sumbox])
113
  stop_b.click(None,None,None, cancels=[sub_b,sub_e])
114
- iface.queue().launch(share=True,show_api=False)
 
9
  import io
10
  import uuid
11
  base_url="https://johann22-chat-diffusion.hf.space/"
 
12
  loaded_model=[]
13
  for i,model in enumerate(models):
14
  loaded_model.append(gr.load(f'models/{model}'))
 
17
  now = datetime.now()
18
  date_time_str = now.strftime("%Y-%m-%d %H:%M:%S")
19
 
20
+ client = InferenceClient(
21
+ "mistralai/Mixtral-8x7B-Instruct-v0.1"
22
+ )
23
+
24
+ ############################################
25
+ model = gr.load("models/stabilityai/sdxl-turbo")
26
+
27
  history = []
28
 
29
  def infer(txt):
 
115
  sub_b = submit_b.click(run, [msg,chatbot,model_drop],[msg,chatbot,sumbox])
116
  sub_e = msg.submit(run, [msg, chatbot,model_drop], [msg, chatbot,sumbox])
117
  stop_b.click(None,None,None, cancels=[sub_b,sub_e])
118
+ iface.launch()