davidberenstein1957 HF staff commited on
Commit
7854264
·
1 Parent(s): 05c0b89

Fix requirements

Browse files
Files changed (2) hide show
  1. chat_interface_preference.py +3 -2
  2. requirements.txt +2 -2
chat_interface_preference.py CHANGED
@@ -27,8 +27,9 @@ from gradio.components import (
27
  get_component_instance,
28
  )
29
  from gradio.events import Dependency, on
30
- from gradio.helpers import Error, Info, special_args
31
  from gradio.helpers import create_examples as Examples # noqa: N812
 
32
  from gradio.layouts import Accordion, Group, Row
33
  from gradio.routes import Request
34
  from gradio.themes import ThemeClass as Theme
@@ -624,7 +625,7 @@ class ChatInterface(Blocks):
624
  # return f"<p><div class='message-identifier'>{message}</div></p>"
625
  return (
626
  '<div class="message-content">'
627
- + f"<strong>Option {turn} - </strong><br>"
628
  + f"<em>Length: {len(message)} characters</em><br><br>"
629
  + f'<div class="message-identifier">{message}</div>'
630
  + "</div>"
 
27
  get_component_instance,
28
  )
29
  from gradio.events import Dependency, on
30
+ from gradio.helpers import Error, Info
31
  from gradio.helpers import create_examples as Examples # noqa: N812
32
+ from gradio.helpers import special_args
33
  from gradio.layouts import Accordion, Group, Row
34
  from gradio.routes import Request
35
  from gradio.themes import ThemeClass as Theme
 
625
  # return f"<p><div class='message-identifier'>{message}</div></p>"
626
  return (
627
  '<div class="message-content">'
628
+ + f"<strong>Option {turn}</strong><br>"
629
  + f"<em>Length: {len(message)} characters</em><br><br>"
630
  + f'<div class="message-identifier">{message}</div>'
631
  + "</div>"
requirements.txt CHANGED
@@ -1,10 +1,10 @@
1
  gradio==4.39
2
  scipy==1.13.0
3
  spaces==0.28.3
4
- torch==2.0.1
5
  accelerate
6
  bitsandbytes
7
  torch
8
- transformers==4.43.1
9
  einops
10
  sentencepiece
 
1
  gradio==4.39
2
  scipy==1.13.0
3
  spaces==0.28.3
4
+ torch
5
  accelerate
6
  bitsandbytes
7
  torch
8
+ transformers==4.42.4
9
  einops
10
  sentencepiece