Joshua Sundance Bailey commited on
Commit
cab77bb
·
1 Parent(s): eaecb99

reorder imports; modify readme

Browse files
Files changed (2) hide show
  1. README.md +2 -2
  2. langchain-streamlit-demo/app.py +3 -2
README.md CHANGED
@@ -30,7 +30,7 @@ This `README` was written by [Claude 2](https://www.anthropic.com/index/claude-2
30
 
31
  # Features
32
  - Chat interface for talking to AI assistant
33
- - Supports models from:
34
  - [OpenAI](https://openai.com/)
35
  - `gpt-3.5-turbo`
36
  - `gpt-4`
@@ -47,7 +47,7 @@ This `README` was written by [Claude 2](https://www.anthropic.com/index/claude-2
47
  - Allows giving feedback on assistant's responses
48
 
49
  # Usage
50
- # Run on HuggingFace Spaces
51
  [![Open HuggingFace Space](https://huggingface.co/datasets/huggingface/badges/raw/main/open-in-hf-spaces-sm.svg)](https://huggingface.co/spaces/joshuasundance/langchain-streamlit-demo)
52
 
53
  ## With Docker (pull from Docker Hub)
 
30
 
31
  # Features
32
  - Chat interface for talking to AI assistant
33
+ - Supports models from
34
  - [OpenAI](https://openai.com/)
35
  - `gpt-3.5-turbo`
36
  - `gpt-4`
 
47
  - Allows giving feedback on assistant's responses
48
 
49
  # Usage
50
+ ## Run on HuggingFace Spaces
51
  [![Open HuggingFace Space](https://huggingface.co/datasets/huggingface/badges/raw/main/open-in-hf-spaces-sm.svg)](https://huggingface.co/spaces/joshuasundance/langchain-streamlit-demo)
52
 
53
  ## With Docker (pull from Docker Hub)
langchain-streamlit-demo/app.py CHANGED
@@ -1,11 +1,12 @@
1
  import os
 
 
 
2
  import streamlit as st
3
  from langchain.callbacks.manager import tracing_v2_enabled
4
  from langchain.callbacks.tracers.langchain import wait_for_all_tracers
5
  from langchain.callbacks.tracers.run_collector import RunCollectorCallbackHandler
6
  from langchain.schema.runnable import RunnableConfig
7
- import openai
8
- import anthropic
9
  from langsmith.client import Client
10
 
11
  from llm_stuff import (
 
1
  import os
2
+
3
+ import anthropic
4
+ import openai
5
  import streamlit as st
6
  from langchain.callbacks.manager import tracing_v2_enabled
7
  from langchain.callbacks.tracers.langchain import wait_for_all_tracers
8
  from langchain.callbacks.tracers.run_collector import RunCollectorCallbackHandler
9
  from langchain.schema.runnable import RunnableConfig
 
 
10
  from langsmith.client import Client
11
 
12
  from llm_stuff import (