Open
Conversation
swamisundar
approved these changes
Sep 9, 2019
| @@ -0,0 +1,157 @@ | |||
|
|
|||
| # https://7b7qhlx1yh.execute-api.us-east-1.amazonaws.com/Predict/cf09696a-e6f6-482a-ac75-fd1ad61772a4 | |||
| import PySimpleGUI as sg | ||
|
|
||
|
|
||
| # Sample format of data expected |
| # "Insulin":0,"BMI":33.6,"DiabetesPedigreeFunction":0.627,"Age":50} | ||
|
|
||
| def mystr(inp_val, inp_feature): | ||
| tmp_val = inp_val |
Contributor
There was a problem hiding this comment.
check for type to be str and add quotes around it.
Also name the function to be wrap_string_in_quotes
| predictions (list): Contains the list of predictions | ||
| """ | ||
| values_age = values['Age'] | ||
| #print(values_age) |
| [sg.Text('Area Income'), sg.Input(61833.9, key='Area Income')], | ||
| [sg.Text('Daily Internet Usage'), sg.Input(256.09, key='Daily Internet Usage')], | ||
| [sg.Text('Ad Topic Line'), sg.Input('Cloned 5thgeneration orchestration', key='Ad Topic Line')], | ||
| # [sg.Text('Ad Topic Line'), sg.Input('', key='Ad Topic Line')], |
sindhuPyxeda
approved these changes
Sep 9, 2019
| if event is None or event == 'Exit': | ||
| break | ||
|
|
||
| print("from GUI:", values) |
Contributor
There was a problem hiding this comment.
remove this print value
swamisundar
approved these changes
Sep 20, 2019
| if(feature == 'Age'): | ||
| body = body + '"' + feature + '"' + ':' + str(values_split[a]) + ',' | ||
| else: | ||
| #body = body + '"' + feature + '"' + ':' + str(values[feature]) + ',' |
ShilpaToro
reviewed
Sep 20, 2019
| } | ||
|
|
||
| public static void main(String[] args) { | ||
| AdClicksProject1 clicks = new DiabetesProject1(0, 0, 400, 400); |
Contributor
There was a problem hiding this comment.
change DiabeteProject1 to AdClicksProject1
Text Edit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.